package ryulib.test;

import ryulib.game.GamePlatform;
import android.app.Activity;
import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.LinearLayout;

public class MainActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		_GamePlatform = new GamePlatform(this);
		_GamePlatform.setLayoutParams(new LinearLayout.LayoutParams(
				ViewGroup.LayoutParams.FILL_PARENT,
				ViewGroup.LayoutParams.FILL_PARENT, 0.0F));

		setContentView(_GamePlatform);

		_Asteroid = new Asteroid(this, 100, 0);
		_GamePlatform.AddControl(_Asteroid);
	}

	private GamePlatform _GamePlatform = null;
	private Asteroid _Asteroid = null;

}
